<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>
     <div>
     	<jsp:include page="../common.jsp"></jsp:include>
     </div>

	用户操作：
            <a class="btn btn-primary" type="button" href="<%=request.getContextPath()%>/admin/user/add">添加用户</a>
            <a class="btn btn-primary" type="button" href="#" id="deleteUserBtn" >删除用户</a>
	<table>
				<thead>
                    <tr class="info">
                        <th></th>
                        <th>用户标识</th>
                        <th>用户名</th>
                        <th>密码</th>
                        <th>用户昵称</th>
                        <th>用户状态</th>
                        <th>用户操作</th>
                    </tr>
                </thead>
                
                <tbody>
                	<c:forEach items="${list}" var="user">
                        <tr>
                            <td><input type="checkbox" class="userId" value="${user.id}"></td>
                            <td>${user.id}</td>
                            <td>${user.username}</td>
                            <td>
                                (密码已经加密,查询无意义)
                                <%--${user.password}--%>
                            </td>
                            <td>${user.nickname}</td>
                            <td >
                                	【<class="status" data-id="${user.id}" data-status="${user.status}">启用</a>】
                            </td>
                            <td>
                                <a href="<%=request.getContextPath()%>/admin/user/update/${user.id}">更新用户信息</a>
                                <a href="${request.contextPath}/admin/user/resources/${user.id}">查询用户权限</a>
                            </td>
                        </tr>
                    </c:forEach>
                </tbody>
	</table>
</body>
</html>